<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*id选择器*/
        #p1 {
            color: crimson;
        }
        /*类选择器*/
        .c1{color: chartreuse}
        a,#p1,.c1{background-color: #fdf84e
        }
        /*属性选择器*/
        input[type='text']{color: #085582
        }
        input[type = 'password']{background-color: cornsilk}
        *{ border: 4px solid pink}
    </style>
</head>
<body>
<input type="text">
<input type="password">
<a href="">超链接</a>
<p id="p1">苹果</p>
<p>香蕉</p>
<p class="c1">橘子</p>
<div>电视</div>
<div>冰箱</div>
<div class="c1">洗衣机</div>

</body>
</html>